<template>
  <button @click="loginFun">登录</button>
</template>

<script lang="ts" setup name="LoginPage">
  import { useRouter } from 'vue-router';
import { useUserStore } from "@/store"
const userStore = useUserStore()
const router = useRouter();
const loginFun = () => {
  userStore.loginCloud({
    userName:'admin',
    passWord:'admin'
  })
  router.push('/')
}
</script>

<style scoped lang="less"></style>
